calculate percentages using Open Office